import 'package:flutter/material.dart';


class MyApp2 extends StatelessWidget {
  const MyApp2({super.key});

  @override
  Widget build(BuildContext context) {
   return  Scaffold(
      // 1.1 导航
      appBar: AppBar(
        backgroundColor: Colors.pink,
        title: const Text(''),
      ),
      // 1.2 主体部分
      body: const Center(
        child: Text(
          'Hello, Flutter',
          textDirection: TextDirection.ltr,
          style: TextStyle(
              fontSize: 30.0, color: Colors.red, fontWeight: FontWeight.bold),
        ),
         
      ),
    );
   
  }
}